import request from '@/axios'
import type { ListParams, Response } from '@/api/api'

export interface Row {
  id?: number
  no: string
  pay_type: string
  order_status: string
  is_salesman: string
  store_name: string
  total_num: string
  total_category: number
  channel_text: number
  channel: number
}
// 分账列表
export const getListApi = (data: ListParams): Promise<Response<Row>> => {
  return request.post({ url: '/store/order/profit', data })
}
